package uit.shoeshop.model;

import uit.shoeshop.dto.ProductDTO;
import uit.shoeshop.dao.ProductDAO;

import java.sql.SQLException;
import java.util.ArrayList;

public class FeaturedModel {
	public FeaturedModel(){
		
	}
	
	public ArrayList<ProductDTO> getAllFeaturedProduct() throws SQLException{
		ArrayList<ProductDTO> product = new ArrayList<ProductDTO>();

		ProductDAO tblProduct = new ProductDAO();
		/*
		 * Lay tat ca cac featured product
		 */
		product = tblProduct.getFeaturedProduct();
		
		tblProduct = null;
		return product;
	}

		
}
